package com.qyer.hive.udf;

public class GeoBlockModel {
	
	private long lon; 
	
	private long lat;
	
	private int ipID;
	
	public GeoBlockModel(String line){
		String[] arr = line.split(",",-1);
		if(arr.length != 3){
			System.err.println("error line:"+line);
			return;
		}
		this.lon = Long.parseLong(arr[0]);
		this.lat = Long.parseLong(arr[1]);
		this.ipID = Integer.parseInt(arr[2]);
	}

	public GeoBlockModel(long lon, long lat, int ipID) {
		this.lon = lon;
		this.lat = lat;
		this.ipID = ipID;
	}

	public long getLon() {
		return lon;
	}

	public void setLon(long lon) {
		this.lon = lon;
	}

	public long getLat() {
		return lat;
	}

	public void setLat(long lat) {
		this.lat = lat;
	}

	public int getIpID() {
		return ipID;
	}

	public void setIpID(int ipID) {
		this.ipID = ipID;
	}
	
}
